<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusMileageDropTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_mileage_drop', function (Blueprint $table) {
            $table->id();
            $table->date('date')->nullable()->comment('日期');
            $table->string('bus_num')->nullable()->comment('车牌号');
            $table->decimal('drop_trip', 10, 1)->nullable()->comment('掉趟');
            $table->integer('user_id')->nullable()->comment('用户ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_mileage_drop');
    }
}
